package com.witmed.lib_http

import android.os.Environment
import com.zyj.retrofit.adapter.FlowCallAdapterFactory
import retrofit2.Retrofit
import retrofit2.converter.gson.GsonConverterFactory
import java.io.File


class NoneRetrofitImpl:BaseRetrpfitImpl() {
    override fun createRetrofit(): Retrofit? {
        var retrofit=Retrofit.Builder()
            .baseUrl(Concast.BASE_URL)
            .client(createOkHttpBuilder()!!.build())
            .addConverterFactory(GsonConverterFactory.create())
            .addCallAdapterFactory(FlowCallAdapterFactory.create())
            .build()
        return retrofit
    }

    override fun readTimeout(): Long {
        return 60
    }

    override fun connectTimeout(): Long {
        return 60
    }

    override fun writeTimeout(): Long {
        return 60
    }
}